package edu.monash.fit2099.interfaces;

import edu.monash.fit2099.engine.Item;
import edu.monash.fit2099.engine.Location;
import game.entity.item.Fruit;

import java.util.List;

/**
 * This interface provides the ability to add methods to Ground, without modifying code in the engine,
 * or downcasting references in the game.
 */

public interface GroundInterface {
    default boolean aroundTree(Location location){
        return false;
    }
    default boolean hasFruit(){
        return false;
    }
    default List<Fruit> getFruits(){
        return null;
    }

    default void removeFruit(Fruit fruit) {

    }
}
